package top.kangyaocoding.ecommerce;

import org.springframework.ai.chat.messages.AssistantMessage;
import org.springframework.web.multipart.MultipartFile;
import reactor.core.publisher.Flux;
import top.kangyaocoding.ecommerce.dto.ChatAiDTO;
import top.kangyaocoding.ecommerce.req.ChatAiReq;
import top.kangyaocoding.ecommerce.response.Response;

import java.util.List;

/**
 * 描述: AI 聊天服务接口
 *
 * @author K·Herbert
 * @since 2025-04-05 15:35
 */
public interface IChatAIService {
    Response<List<ChatAiDTO>> findAll(String token);

    Response<String> uploadImage(MultipartFile file, String token);

    Flux<AssistantMessage> streamImage(ChatAiReq request, String token) throws Exception;
}
